
function downloadImage(filename: string, url: any) {
	const a = document.createElement('a')
	a.href = url
	a.download = filename
	a.click()
	a.remove() // 移除掉 <a>
}

export function downloadImages(urls: string | any[]) {
	for (let i = 0; i < urls.length; i += 1) {
		setTimeout(() => {
			downloadImage(urls[i].planUrlName, urls[i].planhref)
		}, i * 1000)
	}
}
